package com.kaka.bus.bean;

/**
 * Created by zhangqi on 2017/7/19.
 */

public class Lianxi {

    private String phone;
    private String name;

    @Override
    public int hashCode() {
        return 1;
    }

    @Override
    public boolean equals(Object obj) {
        if(obj instanceof Lianxi){
            Lianxi obj1 = (Lianxi) obj;
            if(this.getName() != null && this.getName().equals(obj1.getName()) &&
                    this.getPhone() != null && this.getPhone().equals(obj1.getPhone())){
                return true;
            }else{
                return false;
            }
        }else{
            return super.equals(obj);
        }
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
